<?php

namespace app\controller\admin;

use app\result\PackageResult;
use think\App;

/**
 * 包更新管理
 */
class Package extends BaseAdmin
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new PackageResult();
    }

    public function list()
    {
        data_exit_json($this->objResult->list($this->param));
    }

    public function get($id)
    {
        data_exit_json($this->objResult->get($id));
    }

    public function state($id)
    {
        data_exit_json($this->objResult->state($id));
    }

    public function add()
    {
        data_exit_json($this->objResult->add($this->param));
    }

    public function update($id)
    {
        data_exit_json($this->objResult->update($id, $this->param));
    }

    public function delete($id)
    {
        data_exit_json($this->objResult->delete($id));
    }

    //开始更新
    public function start_update()
    {
        data_exit_json($this->objResult->start_update($this->param));
    }


}
